From 806cca3c9cf6aae5228ddcf05841ffb8abb6a625 Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Thu, 13 Mar 2008 00:40:57 +0000 Subject: [PATCH] Update comments on explicit completion Signed-off-by: Federico Mena Quintero svn path=/trunk/; revision=19835 --- gtk/gtkfilechooserentry.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/gtk/gtkfilechooserentry.c b/gtk/gtkfilechooserentry.c index 478fe3d836..b7cc08f06f 100644 --- a/gtk/gtkfilechooserentry.c +++ b/gtk/gtkfilechooserentry.c @@ -528,10 +528,11 @@ find_common_prefix (GtkFileChooserEntry *chooser_entry, } typedef enum { - PREFIX_APPENDED, - UNIQUE_PREFIX_APPENDED, INVALID_INPUT, - NO_COMMON_PREFIX + NO_MATCH, + COMPLETED, + COMPLETED_UNIQUE, + COMPLETE_BUT_NOT_UNIQUE } CommonPrefixResult; /* Finds a common prefix based on the contents of the entry and mandatorily appends it */ @@ -578,6 +579,13 @@ append_common_prefix (GtkFileChooserEntry *chooser_entry, have_result = TRUE; } + else + { + /* FIXME: if there was no unique_path, but there was a common_prefix, + * then we *may* have "complete but not unique". find_common_prefix() + * needs to say if the match was a complete entry, or a partial one. + */ + } printf ("common prefix: \"%s\"\n", common_prefix ? common_prefix : ""); -- 2.30.2